package com.easondongh.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easondongh.business.domain.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper extends BaseMapper<Goods> {
    List<Goods> getAllEnableGoods();

    int updateStock(@Param("id") Integer goodsId,@Param("num") int num);
}